package st.business.tepth.business.user.busnumber.workholder.dialog;

import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.widget.TextView;

import st.business.tepth.R;

/**
 * @author zhangyu
 * @date 2019/6/17
 */
public class DialogNoMeasuredValue extends Dialog {
    public DialogNoMeasuredValue(Context context, String msg) {
        super(context);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        View view = LayoutInflater.from(context).
                inflate(R.layout.dialog_no_measured_value, null);
        TextView tvMsg = view.findViewById(R.id.tv_msg);
        tvMsg.setText(msg);
        view.findViewById(R.id.iv_close).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });
        setContentView(view);
    }
}
